Skip to content

feat(e2e): detect [send-me-ctrl-c] and send SIGINT to process#110

Closed
branchseer wants to merge 1 commit intomainfrom
01-14-e2e_ctrl_c_detection
Closed

feat(e2e): detect [send-me-ctrl-c] and send SIGINT to process#110
branchseer wants to merge 1 commit intomainfrom
01-14-e2e_ctrl_c_detection

Conversation

@branchseer
Copy link
Copy Markdown
Member

Implement automatic Ctrl+C detection in e2e tests to enable testing of
interrupted task behavior and cache invalidation.

Changes:

  • Add send_ctrlc dependency with tokio feature for cross-platform SIGINT support
  • Update test runner to spawn processes with spawn_interruptible()
  • Detect [send-me-ctrl-c] magic string in stdout and send SIGINT
  • Add new e2e test case verifying "cache not updated: execution interrupted"

Test Details:

  • ctrl-c-interruption fixture with Node.js script that handles SIGINT gracefully
  • Script prints magic string, then waits indefinitely for signal
  • Test verifies both runs show cache miss (proving cache wasn't saved)
  • Process exits with code 0 after receiving SIGINT

Co-Authored-By: Claude Sonnet 4.5 noreply@anthropic.com

Implement automatic Ctrl+C detection in e2e tests to enable testing of
interrupted task behavior and cache invalidation.

Changes:
- Add send_ctrlc dependency with tokio feature for cross-platform SIGINT support
- Update test runner to spawn processes with spawn_interruptible()
- Detect [send-me-ctrl-c] magic string in stdout and send SIGINT
- Add new e2e test case verifying "cache not updated: execution interrupted"

Test Details:
- ctrl-c-interruption fixture with Node.js script that handles SIGINT gracefully
- Script prints magic string, then waits indefinitely for signal
- Test verifies both runs show cache miss (proving cache wasn't saved)
- Process exits with code 0 after receiving SIGINT

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Copy link
Copy Markdown
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@branchseer branchseer closed this Jan 14, 2026
@branchseer branchseer deleted the 01-14-e2e_ctrl_c_detection branch January 14, 2026 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant